package com.sas.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sas.dao.TTuihhmxDao;
import com.sas.entity.Page;
import com.sas.entity.TTuihhmx;
import com.sas.service.TTuihhmxService;

import java.util.List;




@Service("tTuihhmxService")
public class TTuihhmxServiceImpl implements TTuihhmxService {
	@Autowired
	private TTuihhmxDao tTuihhmxDao;
	
	//集合查询
    @Override
	public List<TTuihhmx> listselect() {
		// TODO Auto-generated method stub
		return tTuihhmxDao.listselect();
	}
    //增加
	@Override
	public int insert(TTuihhmx s) {
		// TODO Auto-generated method stub
		return tTuihhmxDao.insert(s);
	}
    //删除
	@Override
	public int delete(TTuihhmx s) {
		// TODO Auto-generated method stub
		return tTuihhmxDao.delete(s);
	}
    //修改
	@Override
	public int update(TTuihhmx s) {
		// TODO Auto-generated method stub
		return tTuihhmxDao.update(s);
	}
    //分页查询
	@Override
	public List<TTuihhmx> listFenYe(TTuihhmx s, Page page) {
		// TODO Auto-generated method stub
		return tTuihhmxDao.listFenYe(s,page);
	}
    //统计条数
	@Override
	public int selectCount() {
		// TODO Auto-generated method stub
		return tTuihhmxDao.selectCount();
	}
}
